package com.justnow.offer.ch10.brkparent;

public class ClassLoaderTest {
    public static void main(String[] args) throws ClassNotFoundException {
        OrderClassLoader myLoader=new OrderClassLoader("E:\\Findjob\\notes\\OfferNotes\\project\\learnjvm\\out\\production\\learnclassloader\\");
        Class clz=myLoader.loadClass("com.justnow.offer.ch10.brkparent.DemoA");
        System.out.println(clz.getClassLoader());
        System.out.println("==== Class Loader Tree ====");
        ClassLoader cl=clz.getClassLoader();
        while(cl!=null){
            System.out.println(cl);
            cl=cl.getParent();
        }
    }
}
